package com.sl.biz.modular.ide.controller;

import com.sl.biz.modular.cdc.controller.domain.vo.CdcConfigVO;
import com.sl.biz.modular.cdc.dao.domain.entity.CdcConfigDO;
import com.sl.biz.modular.ide.domain.request.IdeListRequest;
import com.sl.biz.modular.ide.domain.response.IdeListVO;
import com.sl.biz.modular.ide.service.IdeBizService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/ide")
@RequiredArgsConstructor
public class IdeController {

private final IdeBizService ideBizService;
    @PostMapping("/list")
    public List<IdeListVO> list(@RequestBody IdeListRequest ideListRequest) {
        return ideBizService.list(ideListRequest.getGroupId(),ideListRequest.getProductId(),ideListRequest.getProcessId());
    }

}
